1.2.1 Class
 
need to set visibility, type, and named variable in the contractor function
 
public function __construct(
	public int $id,
	public string $lastName,
	public string $firstName,
	public bool $logged_in,
	public float $acct_total,
)
        
 
public - viewable everywhere
protected - this class and extended classes
private - only in this class
 
all variables should be private or protected user setter and getter functions to get the variable value
 
Each function must declare a return type
 
 
function getFoo() :string
{
return $this->foo;
}